﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AopFilters
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
    public class IgnoreFiltersAttribute : Attribute
    {
        /// <summary>
        /// 忽略的过滤器类型
        /// </summary>
        public Type[]? IgnoreFilters { get; set; }

        public IgnoreFiltersAttribute()
        {

        }

        public IgnoreFiltersAttribute(Type ignoreFilter)
        {
            IgnoreFilters = new Type[1] { ignoreFilter };
        }
    }
}
